\hypertarget{class_beautiful_soup_1_1_page_element}{
\section{BeautifulSoup.PageElement Class Reference}
\label{class_beautiful_soup_1_1_page_element}\index{BeautifulSoup::PageElement@{BeautifulSoup::PageElement}}
}


Inheritance diagram for BeautifulSoup.PageElement:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=400pt]{class_beautiful_soup_1_1_page_element__inherit__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
def \hyperlink{class_beautiful_soup_1_1_page_element_a2d7586951bb554d2a7574c5b4a75be62}{setup}
\item 
\hypertarget{class_beautiful_soup_1_1_page_element_ae4bba1e4a6d2c8ad772226f58c104f0c}{
def {\bfseries replaceWith}}
\label{class_beautiful_soup_1_1_page_element_ae4bba1e4a6d2c8ad772226f58c104f0c}

\item 
\hypertarget{class_beautiful_soup_1_1_page_element_a4ce6029d1368879215bbbc2bc2d49963}{
def {\bfseries replaceWithChildren}}
\label{class_beautiful_soup_1_1_page_element_a4ce6029d1368879215bbbc2bc2d49963}

\item 
def \hyperlink{class_beautiful_soup_1_1_page_element_a8ede8293cabbf46bc09fa65302d15e23}{extract}
\item 
\hypertarget{class_beautiful_soup_1_1_page_element_a99c58b08e947d186d77858eb57ebd70b}{
def {\bfseries insert}}
\label{class_beautiful_soup_1_1_page_element_a99c58b08e947d186d77858eb57ebd70b}

\item 
def \hyperlink{class_beautiful_soup_1_1_page_element_a5f0be370d420a5f7a7ec4f6303ad0a5f}{append}
\item 
def \hyperlink{class_beautiful_soup_1_1_page_element_aee1549e12351f5e5acdf91d40a9424c0}{findNext}
\item 
def \hyperlink{class_beautiful_soup_1_1_page_element_a2d7ae336a46c1816b4eb2391ae7a72d9}{findAllNext}
\item 
def \hyperlink{class_beautiful_soup_1_1_page_element_a86e764f69c2a35c7cd4c4ef40d3e3a29}{findNextSibling}
\item 
def \hyperlink{class_beautiful_soup_1_1_page_element_a8b7e26a1134831fd763bb3af76fe1835}{findNextSiblings}
\item 
def \hyperlink{class_beautiful_soup_1_1_page_element_ae8aaf3fd999481f0805c81b174e307db}{findPrevious}
\item 
def \hyperlink{class_beautiful_soup_1_1_page_element_a4e9ccd975391b07bcf81e636d3a41728}{findAllPrevious}
\item 
def \hyperlink{class_beautiful_soup_1_1_page_element_a9a1478278aa571da9510dbe238678f16}{findPreviousSibling}
\item 
def \hyperlink{class_beautiful_soup_1_1_page_element_a84e8bf6852599ae331a2e9e6698be5ca}{findPreviousSiblings}
\item 
def \hyperlink{class_beautiful_soup_1_1_page_element_a8da2bba71c08729fa62f7baf6e6a4988}{findParent}
\item 
def \hyperlink{class_beautiful_soup_1_1_page_element_ae9f118a82d6e225e4c0d4adc5d6b2d1e}{findParents}
\item 
\hypertarget{class_beautiful_soup_1_1_page_element_aa1dbb40150a364d5e4a4a6f08de7a6c5}{
def {\bfseries nextGenerator}}
\label{class_beautiful_soup_1_1_page_element_aa1dbb40150a364d5e4a4a6f08de7a6c5}

\item 
\hypertarget{class_beautiful_soup_1_1_page_element_af44816d5ced67d7b9ae6655df67135ea}{
def {\bfseries nextSiblingGenerator}}
\label{class_beautiful_soup_1_1_page_element_af44816d5ced67d7b9ae6655df67135ea}

\item 
\hypertarget{class_beautiful_soup_1_1_page_element_a1f205a1b356c0ff6ee1a717821d22b3a}{
def {\bfseries previousGenerator}}
\label{class_beautiful_soup_1_1_page_element_a1f205a1b356c0ff6ee1a717821d22b3a}

\item 
\hypertarget{class_beautiful_soup_1_1_page_element_a0dbcb16809d57ceb7dfdf835800034ee}{
def {\bfseries previousSiblingGenerator}}
\label{class_beautiful_soup_1_1_page_element_a0dbcb16809d57ceb7dfdf835800034ee}

\item 
\hypertarget{class_beautiful_soup_1_1_page_element_ac8400725004ed9444bf7869c2859b2d8}{
def {\bfseries parentGenerator}}
\label{class_beautiful_soup_1_1_page_element_ac8400725004ed9444bf7869c2859b2d8}

\item 
\hypertarget{class_beautiful_soup_1_1_page_element_a9fd0dd1ffaaecf76474bc74437dcd8d7}{
def {\bfseries substituteEncoding}}
\label{class_beautiful_soup_1_1_page_element_a9fd0dd1ffaaecf76474bc74437dcd8d7}

\item 
def \hyperlink{class_beautiful_soup_1_1_page_element_ace295f8cef690decf49752a70856caed}{toEncoding}
\end{DoxyCompactItemize}
\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class_beautiful_soup_1_1_page_element_aad3127b8e5509790b09b4c382595768f}{
{\bfseries parent}}
\label{class_beautiful_soup_1_1_page_element_aad3127b8e5509790b09b4c382595768f}

\item 
\hypertarget{class_beautiful_soup_1_1_page_element_afec9443351d7e6dd7c60fffb3dc218e3}{
{\bfseries previous}}
\label{class_beautiful_soup_1_1_page_element_afec9443351d7e6dd7c60fffb3dc218e3}

\item 
\hypertarget{class_beautiful_soup_1_1_page_element_a0afbfce933bddab717961e7f345d323b}{
{\bfseries next}}
\label{class_beautiful_soup_1_1_page_element_a0afbfce933bddab717961e7f345d323b}

\item 
\hypertarget{class_beautiful_soup_1_1_page_element_a653ebee3619128a37f952e9f01d94c8b}{
{\bfseries previousSibling}}
\label{class_beautiful_soup_1_1_page_element_a653ebee3619128a37f952e9f01d94c8b}

\item 
\hypertarget{class_beautiful_soup_1_1_page_element_a6d73937e996fe66572cd63065bbf4935}{
{\bfseries nextSibling}}
\label{class_beautiful_soup_1_1_page_element_a6d73937e996fe66572cd63065bbf4935}

\end{DoxyCompactItemize}
\subsection*{Static Public Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class_beautiful_soup_1_1_page_element_a8a52fe49003264294e33cbc0c1ad8d1a}{
{\bfseries fetchNextSiblings} = findNextSiblings}
\label{class_beautiful_soup_1_1_page_element_a8a52fe49003264294e33cbc0c1ad8d1a}

\item 
\hypertarget{class_beautiful_soup_1_1_page_element_a709687b555435d5553f6ed8cad535cab}{
{\bfseries fetchPrevious} = findAllPrevious}
\label{class_beautiful_soup_1_1_page_element_a709687b555435d5553f6ed8cad535cab}

\item 
\hypertarget{class_beautiful_soup_1_1_page_element_a1beb5975e7fd6b94c0a0de15281e2b29}{
{\bfseries fetchPreviousSiblings} = findPreviousSiblings}
\label{class_beautiful_soup_1_1_page_element_a1beb5975e7fd6b94c0a0de15281e2b29}

\item 
\hypertarget{class_beautiful_soup_1_1_page_element_a707cb5c6105e5be1faf3611df23d38ae}{
{\bfseries fetchParents} = findParents}
\label{class_beautiful_soup_1_1_page_element_a707cb5c6105e5be1faf3611df23d38ae}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
\begin{DoxyVerb}Contains the navigational information for some part of the page
(either a tag or a piece of text)\end{DoxyVerb}
 

\subsection{Member Function Documentation}
\hypertarget{class_beautiful_soup_1_1_page_element_a5f0be370d420a5f7a7ec4f6303ad0a5f}{
\index{BeautifulSoup::PageElement@{BeautifulSoup::PageElement}!append@{append}}
\index{append@{append}!BeautifulSoup::PageElement@{BeautifulSoup::PageElement}}
\subsubsection[{append}]{\setlength{\rightskip}{0pt plus 5cm}def BeautifulSoup.PageElement.append (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{tag}
\end{DoxyParamCaption}
)}}
\label{class_beautiful_soup_1_1_page_element_a5f0be370d420a5f7a7ec4f6303ad0a5f}
\begin{DoxyVerb}Appends the given tag to the contents of this tag.\end{DoxyVerb}
 \hypertarget{class_beautiful_soup_1_1_page_element_a8ede8293cabbf46bc09fa65302d15e23}{
\index{BeautifulSoup::PageElement@{BeautifulSoup::PageElement}!extract@{extract}}
\index{extract@{extract}!BeautifulSoup::PageElement@{BeautifulSoup::PageElement}}
\subsubsection[{extract}]{\setlength{\rightskip}{0pt plus 5cm}def BeautifulSoup.PageElement.extract (
\begin{DoxyParamCaption}
\item[{}]{self}
\end{DoxyParamCaption}
)}}
\label{class_beautiful_soup_1_1_page_element_a8ede8293cabbf46bc09fa65302d15e23}
\begin{DoxyVerb}Destructively rips this element out of the tree.\end{DoxyVerb}
 \hypertarget{class_beautiful_soup_1_1_page_element_a2d7ae336a46c1816b4eb2391ae7a72d9}{
\index{BeautifulSoup::PageElement@{BeautifulSoup::PageElement}!findAllNext@{findAllNext}}
\index{findAllNext@{findAllNext}!BeautifulSoup::PageElement@{BeautifulSoup::PageElement}}
\subsubsection[{findAllNext}]{\setlength{\rightskip}{0pt plus 5cm}def BeautifulSoup.PageElement.findAllNext (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{name = {\ttfamily None}, }
\item[{}]{attrs = {\ttfamily \{\}}, }
\item[{}]{text = {\ttfamily None}, }
\item[{}]{limit = {\ttfamily None}, }
\item[{}]{kwargs}
\end{DoxyParamCaption}
)}}
\label{class_beautiful_soup_1_1_page_element_a2d7ae336a46c1816b4eb2391ae7a72d9}
\begin{DoxyVerb}Returns all items that match the given criteria and appear
after this Tag in the document.\end{DoxyVerb}
 \hypertarget{class_beautiful_soup_1_1_page_element_a4e9ccd975391b07bcf81e636d3a41728}{
\index{BeautifulSoup::PageElement@{BeautifulSoup::PageElement}!findAllPrevious@{findAllPrevious}}
\index{findAllPrevious@{findAllPrevious}!BeautifulSoup::PageElement@{BeautifulSoup::PageElement}}
\subsubsection[{findAllPrevious}]{\setlength{\rightskip}{0pt plus 5cm}def BeautifulSoup.PageElement.findAllPrevious (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{name = {\ttfamily None}, }
\item[{}]{attrs = {\ttfamily \{\}}, }
\item[{}]{text = {\ttfamily None}, }
\item[{}]{limit = {\ttfamily None}, }
\item[{}]{kwargs}
\end{DoxyParamCaption}
)}}
\label{class_beautiful_soup_1_1_page_element_a4e9ccd975391b07bcf81e636d3a41728}
\begin{DoxyVerb}Returns all items that match the given criteria and appear
before this Tag in the document.\end{DoxyVerb}
 \hypertarget{class_beautiful_soup_1_1_page_element_aee1549e12351f5e5acdf91d40a9424c0}{
\index{BeautifulSoup::PageElement@{BeautifulSoup::PageElement}!findNext@{findNext}}
\index{findNext@{findNext}!BeautifulSoup::PageElement@{BeautifulSoup::PageElement}}
\subsubsection[{findNext}]{\setlength{\rightskip}{0pt plus 5cm}def BeautifulSoup.PageElement.findNext (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{name = {\ttfamily None}, }
\item[{}]{attrs = {\ttfamily \{\}}, }
\item[{}]{text = {\ttfamily None}, }
\item[{}]{kwargs}
\end{DoxyParamCaption}
)}}
\label{class_beautiful_soup_1_1_page_element_aee1549e12351f5e5acdf91d40a9424c0}
\begin{DoxyVerb}Returns the first item that matches the given criteria and
appears after this Tag in the document.\end{DoxyVerb}
 \hypertarget{class_beautiful_soup_1_1_page_element_a86e764f69c2a35c7cd4c4ef40d3e3a29}{
\index{BeautifulSoup::PageElement@{BeautifulSoup::PageElement}!findNextSibling@{findNextSibling}}
\index{findNextSibling@{findNextSibling}!BeautifulSoup::PageElement@{BeautifulSoup::PageElement}}
\subsubsection[{findNextSibling}]{\setlength{\rightskip}{0pt plus 5cm}def BeautifulSoup.PageElement.findNextSibling (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{name = {\ttfamily None}, }
\item[{}]{attrs = {\ttfamily \{\}}, }
\item[{}]{text = {\ttfamily None}, }
\item[{}]{kwargs}
\end{DoxyParamCaption}
)}}
\label{class_beautiful_soup_1_1_page_element_a86e764f69c2a35c7cd4c4ef40d3e3a29}
\begin{DoxyVerb}Returns the closest sibling to this Tag that matches the
given criteria and appears after this Tag in the document.\end{DoxyVerb}
 \hypertarget{class_beautiful_soup_1_1_page_element_a8b7e26a1134831fd763bb3af76fe1835}{
\index{BeautifulSoup::PageElement@{BeautifulSoup::PageElement}!findNextSiblings@{findNextSiblings}}
\index{findNextSiblings@{findNextSiblings}!BeautifulSoup::PageElement@{BeautifulSoup::PageElement}}
\subsubsection[{findNextSiblings}]{\setlength{\rightskip}{0pt plus 5cm}def BeautifulSoup.PageElement.findNextSiblings (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{name = {\ttfamily None}, }
\item[{}]{attrs = {\ttfamily \{\}}, }
\item[{}]{text = {\ttfamily None}, }
\item[{}]{limit = {\ttfamily None}, }
\item[{}]{kwargs}
\end{DoxyParamCaption}
)}}
\label{class_beautiful_soup_1_1_page_element_a8b7e26a1134831fd763bb3af76fe1835}
\begin{DoxyVerb}Returns the siblings of this Tag that match the given
criteria and appear after this Tag in the document.\end{DoxyVerb}
 \hypertarget{class_beautiful_soup_1_1_page_element_a8da2bba71c08729fa62f7baf6e6a4988}{
\index{BeautifulSoup::PageElement@{BeautifulSoup::PageElement}!findParent@{findParent}}
\index{findParent@{findParent}!BeautifulSoup::PageElement@{BeautifulSoup::PageElement}}
\subsubsection[{findParent}]{\setlength{\rightskip}{0pt plus 5cm}def BeautifulSoup.PageElement.findParent (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{name = {\ttfamily None}, }
\item[{}]{attrs = {\ttfamily \{\}}, }
\item[{}]{kwargs}
\end{DoxyParamCaption}
)}}
\label{class_beautiful_soup_1_1_page_element_a8da2bba71c08729fa62f7baf6e6a4988}
\begin{DoxyVerb}Returns the closest parent of this Tag that matches the given
criteria.\end{DoxyVerb}
 \hypertarget{class_beautiful_soup_1_1_page_element_ae9f118a82d6e225e4c0d4adc5d6b2d1e}{
\index{BeautifulSoup::PageElement@{BeautifulSoup::PageElement}!findParents@{findParents}}
\index{findParents@{findParents}!BeautifulSoup::PageElement@{BeautifulSoup::PageElement}}
\subsubsection[{findParents}]{\setlength{\rightskip}{0pt plus 5cm}def BeautifulSoup.PageElement.findParents (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{name = {\ttfamily None}, }
\item[{}]{attrs = {\ttfamily \{\}}, }
\item[{}]{limit = {\ttfamily None}, }
\item[{}]{kwargs}
\end{DoxyParamCaption}
)}}
\label{class_beautiful_soup_1_1_page_element_ae9f118a82d6e225e4c0d4adc5d6b2d1e}
\begin{DoxyVerb}Returns the parents of this Tag that match the given
criteria.\end{DoxyVerb}
 \hypertarget{class_beautiful_soup_1_1_page_element_ae8aaf3fd999481f0805c81b174e307db}{
\index{BeautifulSoup::PageElement@{BeautifulSoup::PageElement}!findPrevious@{findPrevious}}
\index{findPrevious@{findPrevious}!BeautifulSoup::PageElement@{BeautifulSoup::PageElement}}
\subsubsection[{findPrevious}]{\setlength{\rightskip}{0pt plus 5cm}def BeautifulSoup.PageElement.findPrevious (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{name = {\ttfamily None}, }
\item[{}]{attrs = {\ttfamily \{\}}, }
\item[{}]{text = {\ttfamily None}, }
\item[{}]{kwargs}
\end{DoxyParamCaption}
)}}
\label{class_beautiful_soup_1_1_page_element_ae8aaf3fd999481f0805c81b174e307db}
\begin{DoxyVerb}Returns the first item that matches the given criteria and
appears before this Tag in the document.\end{DoxyVerb}
 \hypertarget{class_beautiful_soup_1_1_page_element_a9a1478278aa571da9510dbe238678f16}{
\index{BeautifulSoup::PageElement@{BeautifulSoup::PageElement}!findPreviousSibling@{findPreviousSibling}}
\index{findPreviousSibling@{findPreviousSibling}!BeautifulSoup::PageElement@{BeautifulSoup::PageElement}}
\subsubsection[{findPreviousSibling}]{\setlength{\rightskip}{0pt plus 5cm}def BeautifulSoup.PageElement.findPreviousSibling (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{name = {\ttfamily None}, }
\item[{}]{attrs = {\ttfamily \{\}}, }
\item[{}]{text = {\ttfamily None}, }
\item[{}]{kwargs}
\end{DoxyParamCaption}
)}}
\label{class_beautiful_soup_1_1_page_element_a9a1478278aa571da9510dbe238678f16}
\begin{DoxyVerb}Returns the closest sibling to this Tag that matches the
given criteria and appears before this Tag in the document.\end{DoxyVerb}
 \hypertarget{class_beautiful_soup_1_1_page_element_a84e8bf6852599ae331a2e9e6698be5ca}{
\index{BeautifulSoup::PageElement@{BeautifulSoup::PageElement}!findPreviousSiblings@{findPreviousSiblings}}
\index{findPreviousSiblings@{findPreviousSiblings}!BeautifulSoup::PageElement@{BeautifulSoup::PageElement}}
\subsubsection[{findPreviousSiblings}]{\setlength{\rightskip}{0pt plus 5cm}def BeautifulSoup.PageElement.findPreviousSiblings (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{name = {\ttfamily None}, }
\item[{}]{attrs = {\ttfamily \{\}}, }
\item[{}]{text = {\ttfamily None}, }
\item[{}]{limit = {\ttfamily None}, }
\item[{}]{kwargs}
\end{DoxyParamCaption}
)}}
\label{class_beautiful_soup_1_1_page_element_a84e8bf6852599ae331a2e9e6698be5ca}
\begin{DoxyVerb}Returns the siblings of this Tag that match the given
criteria and appear before this Tag in the document.\end{DoxyVerb}
 \hypertarget{class_beautiful_soup_1_1_page_element_a2d7586951bb554d2a7574c5b4a75be62}{
\index{BeautifulSoup::PageElement@{BeautifulSoup::PageElement}!setup@{setup}}
\index{setup@{setup}!BeautifulSoup::PageElement@{BeautifulSoup::PageElement}}
\subsubsection[{setup}]{\setlength{\rightskip}{0pt plus 5cm}def BeautifulSoup.PageElement.setup (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{parent = {\ttfamily None}, }
\item[{}]{previous = {\ttfamily None}}
\end{DoxyParamCaption}
)}}
\label{class_beautiful_soup_1_1_page_element_a2d7586951bb554d2a7574c5b4a75be62}
\begin{DoxyVerb}Sets up the initial relations between this element and
other elements.\end{DoxyVerb}
 \hypertarget{class_beautiful_soup_1_1_page_element_ace295f8cef690decf49752a70856caed}{
\index{BeautifulSoup::PageElement@{BeautifulSoup::PageElement}!toEncoding@{toEncoding}}
\index{toEncoding@{toEncoding}!BeautifulSoup::PageElement@{BeautifulSoup::PageElement}}
\subsubsection[{toEncoding}]{\setlength{\rightskip}{0pt plus 5cm}def BeautifulSoup.PageElement.toEncoding (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{s, }
\item[{}]{encoding = {\ttfamily None}}
\end{DoxyParamCaption}
)}}
\label{class_beautiful_soup_1_1_page_element_ace295f8cef690decf49752a70856caed}
\begin{DoxyVerb}Encodes an object to a string in some encoding, or to Unicode.
.\end{DoxyVerb}
 

The documentation for this class was generated from the following file:\begin{DoxyCompactItemize}
\item 
BeautifulSoup.py\end{DoxyCompactItemize}
